﻿Imports System
Imports System.Collections.Generic
Imports System.Linq
Imports System.Text
Imports NUnit.Framework

Namespace Axial.Tests
    <TestFixture()> _
    Public Class BasicTests
        Inherits TestBase
        <Test()> _
        Public Sub AddInlineTest()
            VerifyMethodOutput("AddInline", "return 5;")
        End Sub

        Public Function AddInline() As Integer
            Return 2 + 3
        End Function

        <Test()> _
        Public Sub VarTest()
            VerifyMethodOutput("Var", "c = a + b;" & vbNewLine & "return c;")
        End Sub

        Public Function Var() As Integer
            Dim a As Integer = 2, b As Integer = 3, c As Integer
            c = a + b
            Return c
        End Function
    End Class
End Namespace